ostree.git
4 years agoSkip test-pull-repeated during CI
Simon McVittie [Mon, 30 Jul 2018 15:51:01 +0000 (16:51 +0100)]
Skip test-pull-repeated during CI

This test is expected to fail a small proportion of the time. During
the build of ostree 2018.7-1 in Debian, it seems we were unlucky on
s390x. Non-deterministic tests are also problematic for autopkgtest,
where they can gate migration of our dependencies like GLib, so skip
this test unless the caller has opted-in to non-deterministic tests.

It would be appropriate to enable this test in environments where
failures can easily be retried and are not disruptive to other
packages.

Signed-off-by: Simon McVittie <smcv@debian.org>
Gbp-Pq: Topic debian
Gbp-Pq: Name Skip-test-pull-repeated-during-CI.patch

4 years agoRelease to unstable
Simon McVittie [Mon, 24 Jan 2022 10:44:13 +0000 (10:44 +0000)]
Release to unstable

4 years agoUse debhelper 11 features instead of dh-exec
Simon McVittie [Mon, 24 Jan 2022 09:51:23 +0000 (09:51 +0000)]
Use debhelper 11 features instead of dh-exec

Since compat level 11, man pages installed by the upstream build system
can be listed in d/*.manpages and will automatically be excluded under
the nodoc build-profile.

4 years agoMove README.md from gir1.2-ostree-1.0 to libostree-doc
Simon McVittie [Mon, 24 Jan 2022 09:50:47 +0000 (09:50 +0000)]
Move README.md from gir1.2-ostree-1.0 to libostree-doc

4 years agoRelease to experimental
Simon McVittie [Mon, 10 Jan 2022 12:42:25 +0000 (12:42 +0000)]
Release to experimental

4 years agoostree Breaks flatpak-builder (<< 1.2.1-2~)
Simon McVittie [Mon, 10 Jan 2022 12:42:04 +0000 (12:42 +0000)]
ostree Breaks flatpak-builder (<< 1.2.1-2~)

Previous versions relied on being able to use FUSE 2 options that are no
longer supported by FUSE 3, so prepare a lockstep transition.

4 years agoRelease to experimental
Simon McVittie [Fri, 7 Jan 2022 10:44:58 +0000 (10:44 +0000)]
Release to experimental

4 years agoUpdate syntax of Lintian overrides for newer Lintian
Simon McVittie [Fri, 7 Jan 2022 10:44:45 +0000 (10:44 +0000)]
Update syntax of Lintian overrides for newer Lintian

4 years agoRefresh patch series
Simon McVittie [Fri, 7 Jan 2022 10:41:46 +0000 (10:41 +0000)]
Refresh patch series

Gbp-Dch: ignore

4 years agoBuild using FUSE 3
Simon McVittie [Fri, 7 Jan 2022 10:41:26 +0000 (10:41 +0000)]
Build using FUSE 3

4 years agoNew upstream release
Simon McVittie [Fri, 7 Jan 2022 10:41:10 +0000 (10:41 +0000)]
New upstream release

4 years agoUpdate upstream source from tag 'upstream/2022.1'
Simon McVittie [Fri, 7 Jan 2022 10:35:26 +0000 (10:35 +0000)]
Update upstream source from tag 'upstream/2022.1'

Update to upstream version '2022.1'
with Debian dir 8a98c57b6bb7149bd55803c783f08a2e917525b8

4 years agoNew upstream version 2022.1
Simon McVittie [Fri, 7 Jan 2022 10:35:19 +0000 (10:35 +0000)]
New upstream version 2022.1

4 years agoRelease 2022.1
Luca BRUNO [Wed, 5 Jan 2022 10:03:03 +0000 (10:03 +0000)]
Release 2022.1

4 years agoMerge pull request #2506 from lucab/ups/dependabot-config
Dan Nicholson [Tue, 4 Jan 2022 13:17:08 +0000 (06:17 -0700)]
Merge pull request #2506 from lucab/ups/dependabot-config

github: add dependabot config

4 years agogithub: add dependabot config
Luca BRUNO [Tue, 4 Jan 2022 10:30:20 +0000 (10:30 +0000)]
github: add dependabot config

This adds a configuration file for dependabot, taking care of automatic
updates for all git submodules.

4 years agoMerge pull request #2376 from smcv/fuse3
Luca Bruno [Tue, 4 Jan 2022 10:27:14 +0000 (10:27 +0000)]
Merge pull request #2376 from smcv/fuse3

rofiles-fuse: Build using FUSE 3 if possible, falling back to FUSE 2

4 years agorofiles-fuse: Build using FUSE 3 if possible, falling back to FUSE 2
Simon McVittie [Tue, 4 Jan 2022 09:41:38 +0000 (09:41 +0000)]
rofiles-fuse: Build using FUSE 3 if possible, falling back to FUSE 2

This adds build-time configuration logic to automatically detect
and switch between libfuse 2.x and 3.x.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Co-authored-by: Luca BRUNO <luca.bruno@coreos.com>
4 years agoMerge pull request #2505 from lucab/ups/bsdiff-error-throw
Colin Walters [Mon, 3 Jan 2022 21:57:52 +0000 (16:57 -0500)]
Merge pull request #2505 from lucab/ups/bsdiff-error-throw

lib/static-delta: throw a proper error on bspatch failure

4 years agoMerge pull request #2504 from lucab/ups/bsdiff-CVE-2014-9862
Colin Walters [Mon, 3 Jan 2022 18:20:55 +0000 (13:20 -0500)]
Merge pull request #2504 from lucab/ups/bsdiff-CVE-2014-9862

bsdiff: bump submodule, pick up fix for CVE-2014-9862

4 years agolib/static-delta: throw a proper error on bspatch failure
Luca BRUNO [Mon, 3 Jan 2022 17:38:51 +0000 (17:38 +0000)]
lib/static-delta: throw a proper error on bspatch failure

This makes sure that a populated GError is returned when bsdiff
patching fails. The human-friendly label also helps in debugging.

4 years agobsdiff: bump submodule, pick up fix for CVE-2014-9862
Luca BRUNO [Mon, 3 Jan 2022 15:42:50 +0000 (15:42 +0000)]
bsdiff: bump submodule, pick up fix for CVE-2014-9862

This updates the bsdiff submodule to latest upstream revision, in
order to pick up additional bound checks for CVE-2014-9862.

Update submodule: bsdiff
Ref:
 * https://www.x41-dsec.de/lab/advisories/x41-2020-006-bspatch/

4 years agoMerge pull request #2503 from lucab/ups/libostree-content-writer-header
Colin Walters [Mon, 3 Jan 2022 15:14:48 +0000 (10:14 -0500)]
Merge pull request #2503 from lucab/ups/libostree-content-writer-header

lib: use ostree-content-writer header

4 years agolib: use ostree-content-writer header
Luca BRUNO [Mon, 3 Jan 2022 14:20:58 +0000 (14:20 +0000)]
lib: use ostree-content-writer header

This installs and exposes the content of `ostree-content-writer.h`,
so that library consumers can properly reference symbols defined
in that header.

4 years agoMerge pull request #2502 from cgwalters/analyzer
Dan Nicholson [Tue, 21 Dec 2021 23:03:45 +0000 (16:03 -0700)]
Merge pull request #2502 from cgwalters/analyzer

two minor clang-analyzer fixes

4 years agotests: Fix clang-analyzer not seeing through `g_error()`
Colin Walters [Tue, 21 Dec 2021 19:24:03 +0000 (14:24 -0500)]
tests: Fix clang-analyzer not seeing through `g_error()`

Basically due to the glib structured logging rework we lost the
`noreturn` attribute on `g_error()`.
This is fixed in glib as of https://gitlab.gnome.org/GNOME/glib/-/commit/f97ff20adf4eb7b952dd83e2c13046fe9e282f50

But we might as well just throw an error here.

4 years agosoup-uri: Fix clang-analyzer warning by dropping dead code
Colin Walters [Tue, 21 Dec 2021 19:23:12 +0000 (14:23 -0500)]
soup-uri: Fix clang-analyzer warning by dropping dead code

Fixes `Argument with 'nonnull' attribute passed null` by making
the code not exist at all anymore.

In upstream libsoup this code is gone too; it uses `GUri` from glib
which we probably could now too, but one thing at a time.

4 years agoMerge pull request #2501 from lucab/ups/test-cli-extensions-tweak
Luca Bruno [Tue, 21 Dec 2021 14:08:48 +0000 (14:08 +0000)]
Merge pull request #2501 from lucab/ups/test-cli-extensions-tweak

tests/cli-extensions: tweak test logic

4 years agotests/cli-extensions: tweak test logic
Luca BRUNO [Tue, 21 Dec 2021 10:16:36 +0000 (10:16 +0000)]
tests/cli-extensions: tweak test logic

This updates the test logic for CLI extensions, actually checking
for functional output from the subcommand.
It also cleans up some environmental leftover.

4 years agoMerge pull request #2500 from lucab/ups/cli-extensions
Colin Walters [Mon, 20 Dec 2021 18:47:31 +0000 (13:47 -0500)]
Merge pull request #2500 from lucab/ups/cli-extensions

main: add support for CLI extensions via external binaries

4 years agomain: add support for CLI extensions via external binaries
Luca BRUNO [Mon, 20 Dec 2021 10:00:02 +0000 (10:00 +0000)]
main: add support for CLI extensions via external binaries

This adds some logic to detect and dispatch unknown subcommands to
extensions available in `$PATH`. Additional commands can be
implemented by adding relevant `ostree-$verb` binaries to the system.

As an example, if a `/usr/bin/ostree-extcommand` extension is provided,
the execution of `ostree extcommand --help` will be dispatched to that
as `ostree-extcommand extcommand --help`.

4 years agoUse debian/latest branch for packaging
Simon McVittie [Mon, 13 Dec 2021 12:10:35 +0000 (12:10 +0000)]
Use debian/latest branch for packaging

4 years agoRelease to unstable
Simon McVittie [Mon, 13 Dec 2021 11:39:56 +0000 (11:39 +0000)]
Release to unstable

4 years agoNew upstream release
Simon McVittie [Mon, 13 Dec 2021 11:39:39 +0000 (11:39 +0000)]
New upstream release

  - Drop patch that was applied upstream

4 years agoUpdate upstream source from tag 'upstream/2021.6'
Simon McVittie [Mon, 13 Dec 2021 11:29:29 +0000 (11:29 +0000)]
Update upstream source from tag 'upstream/2021.6'

Update to upstream version '2021.6'
with Debian dir 1fe0a45676f3a27ea217d239d7305b44001f2527

4 years agoNew upstream version 2021.6
Simon McVittie [Mon, 13 Dec 2021 11:29:22 +0000 (11:29 +0000)]
New upstream version 2021.6

4 years agoMerge pull request #2498 from lucab/ups/test-assert-strings
Colin Walters [Fri, 10 Dec 2021 18:25:03 +0000 (13:25 -0500)]
Merge pull request #2498 from lucab/ups/test-assert-strings

tests: assert mandatory values are present

4 years agotests: assert mandatory values are present
Luca BRUNO [Fri, 10 Dec 2021 11:29:29 +0000 (11:29 +0000)]
tests: assert mandatory values are present

This adds a couple of string assertions to make sure that
the test run is sane.

4 years agoMerge pull request #2496 from lucab/ups/repo-asserts
Colin Walters [Wed, 8 Dec 2021 00:58:23 +0000 (19:58 -0500)]
Merge pull request #2496 from lucab/ups/repo-asserts

lib/repo: fix problematic invariant checks

4 years agoMerge pull request #2494 from jmarrero/fsf-address
Colin Walters [Tue, 7 Dec 2021 20:51:48 +0000 (15:51 -0500)]
Merge pull request #2494 from jmarrero/fsf-address

Update FSF license notices to use URL instead of address

4 years agolib/repo: do no return a NULL on failure
Luca BRUNO [Tue, 7 Dec 2021 16:20:49 +0000 (16:20 +0000)]
lib/repo: do no return a NULL on failure

This turns an existing check into an assert. The previously returned
NULL may result in confusing callers, as none of them is checking for
that.

4 years agolib/repo: do no return an arbitrary mode on failure
Luca BRUNO [Tue, 7 Dec 2021 16:16:39 +0000 (16:16 +0000)]
lib/repo: do no return an arbitrary mode on failure

This turns the existing check into an assert. Otherwise, the previous
code may return an arbitrary repo mode (bare) on failure.

4 years agolib/repo: assert that writable state and error agree
Luca BRUNO [Tue, 7 Dec 2021 16:13:54 +0000 (16:13 +0000)]
lib/repo: assert that writable state and error agree

This adds an assertion to check that writable stable and error
are in sync. The subsequent logic uses them interchangeably.

4 years agoUpdate FSF license notices to use URL instead of address
Joseph Marrero [Tue, 7 Dec 2021 01:20:55 +0000 (20:20 -0500)]
Update FSF license notices to use URL instead of address

4 years agoMerge pull request #2493 from cgwalters/summary-lock-shared
Colin Walters [Mon, 6 Dec 2021 13:19:12 +0000 (08:19 -0500)]
Merge pull request #2493 from cgwalters/summary-lock-shared

repo: Change locking for summary regeneration to be shared

4 years agorepo: Change locking for summary regeneration to be shared
Colin Walters [Fri, 3 Dec 2021 19:35:12 +0000 (14:35 -0500)]
repo: Change locking for summary regeneration to be shared

This is trying to address:
https://pagure.io/fedora-iot/issue/48

Basically we changed rpm-ostree to start doing a shared lock during
commit by default, but this broke because pungi is starting a process
doing a commit for each architecture, and then trying to regenerate
the summary after each one.

This patch is deleting a big comment with a rationale for why
summary regeneration should be exclusive.  Point by point:

> This makes sure the commits and deltas don't get
> deleted while generating the summary.

But prune operations require an exclusive lock, which means that
data still can't be deleted when the summary grabs a shared lock.

> It also means we can be sure refs
> won't be created/updated/deleted during the operation, without having to
> add exclusive locks to those operations which would prevent concurrent
> commits from working.

First: The status quo *has* prevented concurrent commits from working!

There is no real locking solution to this problem. What we really
need to do here is regenerate the summary after each commit *or*
when the caller decides to do it and e.g. include deltas at the same
time.

It's OK if multiple threads race to regenerate the summary;
last-one-wins behavior here is totally fine.

4 years agoMerge pull request #2490 from lucab/ups/static-fixes
Jonathan Lebon [Fri, 26 Nov 2021 15:55:15 +0000 (10:55 -0500)]
Merge pull request #2490 from lucab/ups/static-fixes

4 years agolib: misc static analysis fixes
Luca BRUNO [Thu, 25 Nov 2021 15:04:09 +0000 (15:04 +0000)]
lib: misc static analysis fixes

This fixes a few warnings from coverity, none of which really
interesting.

4 years agoMerge pull request #2489 from ostreedev/release-2021.6
Colin Walters [Tue, 23 Nov 2021 14:01:57 +0000 (09:01 -0500)]
Merge pull request #2489 from ostreedev/release-2021.6

Release 2021.6

4 years agoconfigure: post-release version bump
Luca BRUNO [Tue, 23 Nov 2021 10:15:19 +0000 (10:15 +0000)]
configure: post-release version bump

4 years agoRelease 2021.6
Luca BRUNO [Tue, 23 Nov 2021 10:13:32 +0000 (10:13 +0000)]
Release 2021.6

4 years agoMerge pull request #2486 from jlebon/pr/remount-ostree
Colin Walters [Mon, 22 Nov 2021 18:35:28 +0000 (13:35 -0500)]
Merge pull request #2486 from jlebon/pr/remount-ostree

app: Only remount /sysroot if needed

4 years agoapp: Only remount /sysroot if needed
Jonathan Lebon [Fri, 19 Nov 2021 15:44:03 +0000 (10:44 -0500)]
app: Only remount /sysroot if needed

We should only try to remount `/sysroot` if we're actually handling the
sysroot repo and the repo isn't writable. We already have public APIs to
check each of those, so let's use them.

Closes: #2485
4 years agoMerge pull request #2484 from dbnicholson/prune-serialize
Colin Walters [Thu, 18 Nov 2021 19:49:15 +0000 (14:49 -0500)]
Merge pull request #2484 from dbnicholson/prune-serialize

lib/prune: Avoid unnecessary object serialization

4 years agolib/prune: Avoid unnecessary object serialization
Dan Nicholson [Thu, 18 Nov 2021 17:59:46 +0000 (10:59 -0700)]
lib/prune: Avoid unnecessary object serialization

`repo_prune_internal` was deserializing each object and passing the
components to `maybe_prune_loose_object`, which promptly reserialized
it.

4 years agoMerge pull request #2481 from refi64/null-error
Luca Bruno [Fri, 12 Nov 2021 15:19:29 +0000 (15:19 +0000)]
Merge pull request #2481 from refi64/null-error

lib: Avoid dereferencing NULL error values

4 years agolib: Avoid dereferencing NULL error values
Ryan Gonzalez [Fri, 12 Nov 2021 00:07:06 +0000 (18:07 -0600)]
lib: Avoid dereferencing NULL error values

Otherwise, this will segfault when callers don't need any exact errors.

Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com>
4 years agoMerge pull request #2479 from cgwalters/ci-capsh
Colin Walters [Tue, 9 Nov 2021 15:44:08 +0000 (10:44 -0500)]
Merge pull request #2479 from cgwalters/ci-capsh

ci: Require `libcap2-bin` for `capsh`

4 years agoMerge pull request #2477 from ratajs/patch-1
Colin Walters [Tue, 9 Nov 2021 14:32:02 +0000 (09:32 -0500)]
Merge pull request #2477 from ratajs/patch-1

Add Fedora Kinoite link

4 years agoMerge pull request #2476 from valentindavid/valentindavid/glib-fix
Colin Walters [Tue, 9 Nov 2021 14:27:18 +0000 (09:27 -0500)]
Merge pull request #2476 from valentindavid/valentindavid/glib-fix

lib: Fix a bad call to g_file_get_child

4 years agoci: Require `libcap2-bin` for `capsh`
Colin Walters [Tue, 9 Nov 2021 14:21:52 +0000 (09:21 -0500)]
ci: Require `libcap2-bin` for `capsh`

This was previously pulled in indirectly, but it looks like we need
to require it explicitly in newer Ubuntu.

4 years agoMerge branch 'ostreedev:main' into patch-1
Šimon (Simon) Rataj [Thu, 4 Nov 2021 17:50:34 +0000 (18:50 +0100)]
Merge branch 'ostreedev:main' into patch-1

4 years agoMerge pull request #2187 from cgwalters/sysroot-ro-initramfs
Colin Walters [Thu, 4 Nov 2021 14:37:18 +0000 (10:37 -0400)]
Merge pull request #2187 from cgwalters/sysroot-ro-initramfs

prepare-root: Set up sysroot readonly in initramfs

4 years agolib: Fix a bad call to g_file_get_child
Valentin David [Tue, 2 Nov 2021 18:49:04 +0000 (19:49 +0100)]
lib: Fix a bad call to g_file_get_child

In Glib, since commit 3a6e8bc8876e149c36b6b14c6a25a718edb581ed,
`g_file_get_child` does not accept absolute path as paramater anymore.

The broken assertion was encountered during `ostree admin deploy`
command for the checkout of subpath `etc`.

Example of error log:
```
(ostree admin deploy:1640): GLib-GIO-CRITICAL **: 03:42:00.570: g_file_get_child: assertion '!g_path_is_absolute (name)' failed

(ostree admin deploy:1640): GLib-GIO-CRITICAL **: 03:42:00.570: g_file_query_info: assertion 'G_IS_FILE (file)' failed
**
OSTree:ERROR:src/ostree/ot-main.c:232:ostree_run: assertion failed: (success || error)
Bail out! OSTree:ERROR:src/ostree/ot-main.c:232:ostree_run: assertion failed: (success || error)
```

4 years agoAdded Fedora Kinoite link
Šimon (Simon) Rataj [Wed, 3 Nov 2021 20:02:53 +0000 (21:02 +0100)]
Added Fedora Kinoite link

4 years agoprepare-root: Set up sysroot readonly in initramfs
Colin Walters [Mon, 25 Oct 2021 07:07:28 +0000 (07:07 +0000)]
prepare-root: Set up sysroot readonly in initramfs

Let's ensure things are right from the start in the initramfs;
this closes off various race conditions.  Followup to
https://github.com/ostreedev/ostree/pull/2113/commits/35642259175973617da937f3cab6ce5f13c95077

Closes: https://github.com/ostreedev/ostree/issues/2115
4 years agoMerge pull request #2475 from lucab/ups/prepare-root-check-first
Colin Walters [Mon, 1 Nov 2021 13:58:06 +0000 (09:58 -0400)]
Merge pull request #2475 from lucab/ups/prepare-root-check-first

prepare-root: check for read-only sysroot status early on

4 years agoprepare-root: check for read-only sysroot status early on
Luca BRUNO [Mon, 1 Nov 2021 09:09:58 +0000 (09:09 +0000)]
prepare-root: check for read-only sysroot status early on

This moves read-only sysroot checks upfront, so that they are not
intermixed with mount operations.
It has no immediate side-effects, but allow these check to be
independent from the rest of the mounting logic (and future changes
to it).

4 years agoMerge pull request #2472 from lucab/ups/prepare-root-checked-printf
Jonathan Lebon [Tue, 26 Oct 2021 19:14:21 +0000 (15:14 -0400)]
Merge pull request #2472 from lucab/ups/prepare-root-checked-printf

4 years agoMerge pull request #2473 from lucab/ups/prepare-root-less-global-mutable-state
Jonathan Lebon [Tue, 26 Oct 2021 17:25:37 +0000 (13:25 -0400)]
Merge pull request #2473 from lucab/ups/prepare-root-less-global-mutable-state

4 years agoprepare-root: get rid of a global variable
Luca BRUNO [Tue, 26 Oct 2021 16:27:22 +0000 (16:27 +0000)]
prepare-root: get rid of a global variable

This moves a global mutable variable to a smaller local scope,
as it is not really used outside of that.

4 years agoprepare-root: check return codes for errors when assembling paths
Luca BRUNO [Tue, 26 Oct 2021 12:12:48 +0000 (12:12 +0000)]
prepare-root: check return codes for errors when assembling paths

This adds checks around all `snprintf` calls in order to detect
failures and gracefully abort.

4 years agoMerge pull request #2471 from lucab/ups/prepare-root-silent-mounts
Colin Walters [Tue, 26 Oct 2021 14:06:52 +0000 (10:06 -0400)]
Merge pull request #2471 from lucab/ups/prepare-root-silent-mounts

prepare-root: make all mount operations silent

4 years agoprepare-root: make all mount operations silent
Luca BRUNO [Tue, 26 Oct 2021 10:12:27 +0000 (10:12 +0000)]
prepare-root: make all mount operations silent

This adds a `MS_SILENT` flag to all `mount(2)` calls, reducing the
amount of kernel logs produced on each boot.
Those messages do not contain actionable details, and in the "mount
plus read-only remount" case they can easily become highly redundant.

4 years agoMerge pull request #2468 from lucab/ups/tests-var-mount
Luca Bruno [Tue, 19 Oct 2021 09:03:19 +0000 (09:03 +0000)]
Merge pull request #2468 from lucab/ups/tests-var-mount

tests/var-mount: tweak test setup

4 years agotests/var-mount: tweak test setup
Luca BRUNO [Tue, 19 Oct 2021 08:03:09 +0000 (08:03 +0000)]
tests/var-mount: tweak test setup

This reworks the var-mount destructive test in order to properly use
the datadir for the current stateroot instead of a duplicated one.
In turn, it ensures that the resulting `var.mount` after reboot is
correctly pointing to the same location which hosted `/var` on the
previous boot.

4 years agoMerge pull request #2466 from cgwalters/ci-fanalyzer
Luca Bruno [Mon, 18 Oct 2021 16:44:56 +0000 (16:44 +0000)]
Merge pull request #2466 from cgwalters/ci-fanalyzer

ci: Enable -fanalyzer

4 years agotests/rollsum: Use `g_malloc` not `malloc`
Colin Walters [Mon, 18 Oct 2021 15:44:44 +0000 (11:44 -0400)]
tests/rollsum: Use `g_malloc` not `malloc`

To pacify gcc's `-fanalyzer`.

4 years agoci: Enable -fanalyzer
Colin Walters [Thu, 14 Oct 2021 14:40:39 +0000 (10:40 -0400)]
ci: Enable -fanalyzer

Followup to https://github.com/ostreedev/ostree/pull/2463

One thing I noticed here is we lost usage of `build-check.sh`
which also invokes `clang`, which doesn't speak `-fanalyzer`
and would be broken by this if we try to enable `build-check.sh`
again.  But that can come later.

4 years agoMerge pull request #2455 from cgwalters/packit
Luca Bruno [Fri, 15 Oct 2021 07:47:28 +0000 (07:47 +0000)]
Merge pull request #2455 from cgwalters/packit

Attempt to update packit flow to build in COPR

4 years agoMerge pull request #2467 from cgwalters/bump-libglnx-20211014
Jonathan Lebon [Thu, 14 Oct 2021 19:33:33 +0000 (15:33 -0400)]
Merge pull request #2467 from cgwalters/bump-libglnx-20211014

4 years agolibglnx: Bump to ef502aabf7d3a0d37f9c4d228f870ac93404447b
Colin Walters [Thu, 14 Oct 2021 16:40:14 +0000 (12:40 -0400)]
libglnx: Bump to ef502aabf7d3a0d37f9c4d228f870ac93404447b

Various fixes there, including one for `gcc -fanalyzer`.

Update submodule: libglnx

4 years agoAttempt to update packit flow to build in COPR
Colin Walters [Tue, 5 Oct 2021 19:49:23 +0000 (15:49 -0400)]
Attempt to update packit flow to build in COPR

No idea if this will really work, but at least `packit srpm`
does work now.

4 years agoMerge pull request #2463 from cgwalters/fix-fanalyzer
Luca Bruno [Thu, 14 Oct 2021 08:30:25 +0000 (08:30 +0000)]
Merge pull request #2463 from cgwalters/fix-fanalyzer

Fix various mostly theoretical gcc `-fanalyzer` issues

4 years agovariantutil: Fix gcc `-fanalyzer` warnin
Colin Walters [Fri, 8 Oct 2021 12:59:52 +0000 (08:59 -0400)]
variantutil: Fix gcc `-fanalyzer` warnin

Add some not-NULL assertions for return values from glib,
and upgrade some `g_return_if_fail` to `g_assert`.

4 years agoutils: Fix unreachable `NULL` deref by adding assertion
Colin Walters [Fri, 8 Oct 2021 13:10:59 +0000 (09:10 -0400)]
utils: Fix unreachable `NULL` deref by adding assertion

Again this one is just in theory, but let's add an assertion.

4 years agostatic-delta: Fix probably not actually possible NULL deref
Colin Walters [Fri, 8 Oct 2021 13:07:41 +0000 (09:07 -0400)]
static-delta: Fix probably not actually possible NULL deref

Flagged by `gcc -fanalyzer`.  I didn't study this really deeply
but I think it's not actually reachable.  Anyways, let's catch
it on general principle.

4 years agofetcher/soup: Fix gcc `-fanalyzer` warning
Colin Walters [Fri, 8 Oct 2021 12:59:52 +0000 (08:59 -0400)]
fetcher/soup: Fix gcc `-fanalyzer` warning

In general, we're probably going to need to change most of our
`g_return_if_fail` to `g_assert`.  The analyzer flags that
the function can return `NULL`, but the caller isn't prepared for
this.

In practice, let's abort.

4 years agosysroot: Fix gcc `-fanalyzer` warning
Colin Walters [Fri, 8 Oct 2021 12:59:52 +0000 (08:59 -0400)]
sysroot: Fix gcc `-fanalyzer` warning

In general, we're probably going to need to change most of our
`g_return_if_fail` to `g_assert`.  The analyzer flags that
the function can return `NULL`, but the caller isn't prepared for
this.

In practice, let's abort.

4 years agodeployment: Fix gcc `-fanalyzer` warning
Colin Walters [Fri, 8 Oct 2021 12:59:52 +0000 (08:59 -0400)]
deployment: Fix gcc `-fanalyzer` warning

In general, we're probably going to need to change most of our
`g_return_if_fail` to `g_assert`.  The analyzer flags that
the function can return `NULL`, but the caller isn't prepared for
this.

In practice, let's abort.

4 years agoremote: Fix gcc `-fanalyzer` warning
Colin Walters [Fri, 8 Oct 2021 12:59:52 +0000 (08:59 -0400)]
remote: Fix gcc `-fanalyzer` warning

In general, we're probably going to need to change most of our
`g_return_if_fail` to `g_assert`.  The analyzer flags that
the function can return `NULL`, but the caller isn't prepared for
this.

In practice, let's abort.

4 years agoMerge pull request #2464 from lucab/ups/box-auto-txn
Colin Walters [Wed, 13 Oct 2021 21:08:25 +0000 (17:08 -0400)]
Merge pull request #2464 from lucab/ups/box-auto-txn

repo/private: move OstreeRepoAutoTransaction to a boxed type

4 years agoMerge pull request #2465 from travier/docfixes
Luca Bruno [Tue, 12 Oct 2021 09:49:39 +0000 (09:49 +0000)]
Merge pull request #2465 from travier/docfixes

docs: Do not convert -- & --- to en/em-dash

4 years agodocs: Do not convert -- & --- to en/em-dash
Timothée Ravier [Mon, 11 Oct 2021 10:29:21 +0000 (12:29 +0200)]
docs: Do not convert -- & --- to en/em-dash

'--' is frequently used for command line options and was thus
incorrectly rendered as a special en-dash symbol.

4 years agorepo/private: move OstreeRepoAutoTransaction to a boxed type
Luca BRUNO [Mon, 11 Oct 2021 06:52:25 +0000 (06:52 +0000)]
repo/private: move OstreeRepoAutoTransaction to a boxed type

This defines `OstreeRepoAutoTransaction` as a boxed type, in order
to support auto-generating bindings for it.
That first requires adding internal reference-counting to it, to
allow freely copying/freeing references to a single transaction guard.

4 years agoRelease to unstable
Simon McVittie [Sun, 10 Oct 2021 16:51:51 +0000 (17:51 +0100)]
Release to unstable

4 years agoNew upstream release
Simon McVittie [Sun, 10 Oct 2021 16:39:45 +0000 (17:39 +0100)]
New upstream release

  - Update symbols file

4 years agoUpdate upstream source from tag 'upstream/2021.5'
Simon McVittie [Sun, 10 Oct 2021 16:35:20 +0000 (17:35 +0100)]
Update upstream source from tag 'upstream/2021.5'

Update to upstream version '2021.5'
with Debian dir 18336141e32a1132d6f87bc481234c1a335fa76c

4 years agoNew upstream version 2021.5
Simon McVittie [Sun, 10 Oct 2021 16:35:12 +0000 (17:35 +0100)]
New upstream version 2021.5

4 years agoUpdate changelog
Simon McVittie [Sun, 10 Oct 2021 16:35:06 +0000 (17:35 +0100)]
Update changelog